﻿@model Game
<div class="page">
    <div class="pageContent">
        <form method="POST" action="/game/home/detail/@(Model.Id)" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDoneWithRefreshParentDialog);">
        <div class="pageFormContent">
            <div class="tabs">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li><a href="javascript:void(0);"><span>信 息</span></a></li>
                            <li><a href="javascript:void(0);"><span>图标图片</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent">
                    <div>
                        @if (Model.Id > 0)
                        {
                            <p>
                                <label>
                                    Id：@Model.Id
                                </label>
                            </p>
                        }
                        <p>
                            <label>
                                状 态：
                            </label>
                            <select name="Status">
                                <option value="True" @(Model.Status ? "selected=selected" : string.Empty) >可用</option>
                                <option value="False" @(!Model.Status ? "selected=selected" : string.Empty) >不可用</option>
                            </select>
                        </p>
                        <p>
                            <label>
                                名 称：
                            </label>
                            <input type="text" name="Name" value="@(Model.Name)" class="required"/>
                        </p>
                        <p>
                            <label>
                                子名称：
                            </label>
                            <input type="text" name="SubName" value="@(Model.SubName)" class="required"/>
                        </p>
                        <p>
                            <label>
                                上线时间：
                            </label>
                            <input type="text" name="OpendOn" value="@(Model.OpendOn.ToString("yyyy-MM-dd HH:mm:ss"))" class="required date textInput readonly" datefmt="yyyy-MM-dd HH:mm:ss" readonly="readonly"/>
                        </p>
                        <p>
                            <label>
                                参 数：
                            </label>
                            <input type="text" name="Params" value="@(Model.Params)" />
                        </p>
                        <p>
                            <label>
                                描 述：
                            </label>
                            <input type="text" name="Description" value="@(Model.Description)"/>
                        </p>
                    </div>
                    <div>
                        <p>
                            <label>
                                图 标：
                            </label>
                            <input type="text" name="Icon" value="@(Model.Icon)" class="required"/>
                        </p>
                        <p>
                            <label>
                                图 片：
                            </label>
                            <input type="text" name="Picture" value="@(Model.Picture)" class="required"/>
                        </p>
                    </div>
                </div>
                <div class="tabsFooter">
                    <div class="tabsFooterContent">
                    </div>
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" onclick="this.form.onsubmit();">
                                保存</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" onclick="$.pdialog.closeCurrent();">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</div>
